package de.htw.praxisprojekt.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import de.htw.praxisprojekt.LineAlgo;

public class OptionsCenterAction implements ActionListener{

	private LineAlgo lineAlgo;

	public OptionsCenterAction(LineAlgo lineAlgo){
		this.lineAlgo=lineAlgo;
	}

	public void actionPerformed(ActionEvent arg0){
		lineAlgo.getAlgoData().setCenterLoad(!lineAlgo.getAlgoData().isCenterLoad());
	}
}